var URLconfig = require('../../config/urlconfig');
export const baseUrl = URLconfig.getAPI();
import axios from "axios"

//轮播图接口
export const getBanner = (params) => axios.get(baseUrl + 'banner/listBanner', params)
    //登录接口
export const login = (params) => axios.post(baseUrl + 'user/login', params)
    //注册接口
export const register = (params) => axios.post(baseUrl + 'user/register', params)
    //国籍接口
export const countryList = (params) => axios.get(baseUrl + 'country/list', params)
    //短信验证接口
export const getVerificationCode = (params) => axios.get(baseUrl + 'user/getVerificationCode', params)
    //消息列表接口
export const list = (params) => axios.get(baseUrl + 'message/list', params)
    //首页分币计划接口
export const coinPlanShow = (params) => axios.get(baseUrl + 'coinPlan/coinPlanShow', params)
    //分币计划接口
export const coinPlan = (params) => axios.get(baseUrl + 'coinPlan/list', params)
    //币种分类接口
export const coinType = (params) => axios.get(baseUrl + 'virtualWallet/coinType', params)
    //身份验证接口
export const idCard = (params) => axios.post(baseUrl + 'idCard/add', params)
    //上传多个文件接口
export const batchUploadFile = (params) => axios.post(baseUrl + 'batchUploadFile', params)
    //上传单个文件接口
export const uploadFile = (params) => axios.post(baseUrl + 'uploadFile', params)
    //（登录密码/交易密码）修改密码/忘记密码验证接口
export const updatePassword = (params) => axios.post(baseUrl + 'user/updatePassword', params)
    //币种资产
export const coinAssets = (params) => axios.get(baseUrl + 'userVirtualWallet/coinAssets', params)

// 邀请奖励
export const invite = (params) => axios.get(baseUrl + 'user/invite', params)
    // 直接推荐
export const listInvite = (params) => axios.get(baseUrl + '/user/listInvite', params)

//我的交易记录
export const recordList = (params) => axios.get(baseUrl + 'userVirtualWalletRecord/list', params)

// 累计收益和待收收益
export const totalIncomeAndWaitIncome = (params) => axios.get(baseUrl + 'userCoinPlan/totalIncomeAndWaitIncome', params)
    //活期用户个个总收益
export const totalIncomeAndWaitIncomeNum = (params) => axios.get(baseUrl + 'userCurrentCoinPlan/totalIncomeAndWaitIncome', params)
    //用户钱包记录获取月份
export const getMonth = (params) => axios.get(baseUrl + 'userVirtualWalletRecord/getMonth', params)
    //身份认证信息接口
export const lookIdCardInfo = (params) => axios.get(baseUrl + 'idCard/lookIdCardInfo', params)
    // 持有中/已结束
export const listHold = (params) => axios.get(baseUrl + 'userCoinPlan/ListHold', params)
    //忘记密码修改密码
export const passWordForget = (params) => axios.post(baseUrl + 'user/updatePassword', params)

//充币
export const rechargeCoinss = (params) => axios.get(baseUrl + 'coinTrade/rechargeCoin', params)

export const rechargeCoins = (params) => axios.get(baseUrl + 'coinTrade/rechargeCoin', params)
    // /export const rechargeCoin = (params) => axios.get(baseUrl + 'coinTrade/rechargeCoin', params)

//购买定期产品
export const addBuy = (params) => axios.post(baseUrl + 'userCoinPlan/add', params)
    //校验交易密码
export const checkPassword = (params) => axios.get(baseUrl + 'userPay/checkTradePassword', params)


export const rechargeCoin = (params) => axios.get(baseUrl + 'userVirtualWallet/rechargeCoin', params)
    // 提币记录


//添加活期计划
export const addPlanLive = (params) => axios.post(baseUrl + 'userCurrentCoinPlan/add', params)
    //export const rechargeCoin = (params) => axios.get(baseUrl + 'userVirtualWallet/rechargeCoin', params)
    // 提币记录

export const rechargeWithdrawRecord = (params) => axios.get(baseUrl + 'userVirtualWalletRecord/rechargeWithdrawRecord', params)

// 转出
export const currentCoinPlanWithdraw = (params) => axios.post(baseUrl + 'userCurrentCoinPlan/currentCoinPlanWithdraw', params)

// 火币
export const kline = (params) => axios.get(baseUrl + 'market/history/kline', params)

// 提币
export const withdrawCoin = (params) => axios.post(baseUrl + 'coinTrade/withdrawCoin', params)

//export const rechargeWithdrawRecord = (params) => axios.get(baseUrl + 'userVirtualWalletRecord/rechargeWithdrawRecord', params)

//已读接口
export const haveRead = (params) => axios.post(baseUrl + 'message/haveRead', params)
    // 火币接口
export const huoBiApi = (params) => axios.get(baseUrl + '/coinTrade/huoBiApi', params)

// 确认充值
export const rechargeCompleted = (params) => axios.post(baseUrl + '/coinTrade/rechargeCompleted', params)

// 币种换算
// export const conversion = (params) => axios.get(baseUrl + '/coinTrade/conversion', params)
//币种转换
export const biConversion = (params) => axios.get(baseUrl + 'coinTrade/conversion', params)
// 校验交易密码限制次数
export const errorCount = (params) => axios.get(baseUrl + 'userPay/checkTradePasswordErrorCount', params)